import {SimpleJsonFormatter} from '../../formatter/simple-json-formatter';

export class Table {
  constructor(public options: {
    headers: SimpleJsonFormatter[];
    showHeaders?: boolean,
    showPagination?: boolean;
    buttons?: { title?: string; btnClass?: string; isShow?: boolean; text?: string; iconClass?: string; click?: (...params) => any }[];
    rowClick?: (...params) => any;
  }) {
    this.options.showPagination = this.options.showPagination === undefined ? true : this.options.showPagination;
    this.options.showHeaders = this.options.showHeaders === undefined ? true : this.options.showHeaders;
  }

}
